package com.lagou.controller;


import com.lagou.common.ResponseCode;
import com.lagou.common.ServerResponse;
import com.lagou.service.IAccountService;
import com.lagou.service.impl.CountryMapServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/city")
public class CityController {

    @Autowired
    private CountryMapServiceImpl service;

    @RequestMapping("salaryTop.do")
    @ResponseBody
    public ServerResponse<Map<String,Object>> accountTransfer(){
        ServerResponse<Map<String,Object>> response = service.getAvgSalaryTop10();
        return response;
    }
}
